//: C08:BuiltInTypeConstructors.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
#include <iostream>
using namespace std;

class B
{
    int i;
public:
    B(int ii);
    void print();
};

B::B(int ii) : i(ii) {}
void B::print()
{
    cout << i << endl;
}

int main()
{
    B a(1), b(2);
    float pi(3.14159);
    a.print();
    b.print();
    cout << pi << endl;
} ///:~
